[CI]【Hackathon 10th Spring No.29】engine unit test#6771
Draft
cloudforge1 wants to merge 1 commit intoPaddlePaddle:developfrom
Draft
[CI]【Hackathon 10th Spring No.29】engine unit test#6771cloudforge1 wants to merge 1 commit intoPaddlePaddle:developfrom
cloudforge1 wants to merge 1 commit intoPaddlePaddle:developfrom
Conversation
|
Thanks for your contribution! |
6 tasks
d34cfd8 to
dd3cdcf
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #6771 +/- ##
==========================================
Coverage ? 73.62%
==========================================
Files ? 395
Lines ? 54986
Branches ? 8656
==========================================
Hits ? 40483
Misses ? 11620
Partials ? 2883
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
dd3cdcf to
32678a8
Compare
32678a8 to
be99f74
Compare
Add tests/engine/test_engine.py (469 lines, 14 tests) - monkeypatch + SimpleNamespace (no MagicMock) - object.__new__(LLMEngine) bypass for GPU-free testing - Local Coverage: 90% (430 stmts, 44 miss) - Develop baseline: 50% (official CSV) - 15 source methods covered
be99f74 to
99c952f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
No.29 功能模块 fastdeploy/engine/engine.py 单测补充
Modifications
add unittest tests/engine/test_engine.py
develop 分支:覆盖率50%,Miss行数187(98, 145-147, 158-161, 172, 179-182, 185-194, 206-207, 212->228, 235, 268->270, 273->277, 294-299, 302-304, 307-324, 327-337, 350-352, 381-384, 402->exit, 404, 422->436, 423->425, 425->427, 428-433, 439->442, 442->449, 450, 453-457, 492-498, 541->556, 547->556, 551, 555, 556->558, 571, 622, 628, 659, 662, 675-695, 708-737, 745->748, 747, 753->exit, 762-767, 771-775, 780, 782, 786->exit, 788-830, 837-889)
当前PR:覆盖率80%,Miss行数86
完成单测覆盖行数187-86=101
Usage or Command
Accuracy Tests
no need
Checklist
[FDConfig],[APIServer],[Engine],[Scheduler],[PD Disaggregation],[Executor],[Graph Optimization],[Speculative Decoding],[RL],[Models],[Quantization],[Loader],[OP],[KVCache],[DataProcessor],[BugFix],[Docs],[CI],[Optimization],[Feature],[Benchmark],[Others],[XPU],[HPU],[GCU],[DCU],[Iluvatar],[Metax]]pre-commitbefore commit.releasebranch, make sure the PR has been submitted to thedevelopbranch, then cherry-pick it to thereleasebranch with the[Cherry-Pick]PR tag.